import {request} from './request'
//工单打卡
export const disposeClockin = (repairWork:string,requestNumFk:string,longitude:string,latitude:string,HouseAdress:string,repairPersonId:number,comID:number) =>request.post('/poll/Holderpolling',{repairWork,requestNumFk,longitude,latitude,HouseAdress,repairPersonId,comID})
//获得工单打卡记录
export const getDisposeList = (comID:number,maintainerid:number) =>request.post('/poll/Holderpolllist',{comID,maintainerid})
//获取换热站列表
export const getHrzList = (comID:number)=>request.post('/poll/HRZadress',{comID})
//换热站打卡
export const HrzClockin = (comID:number,type:string,siteid:number,maintainerid:number,operationType:number,longitude:string,latitude:string) =>request.post('/poll/HRZpolling',{comID,type,siteid,maintainerid,operationType,longitude,latitude})
//换热站打卡记录
export const HrzClockinList = (comID:number,maintainerid:number) =>request.post('/poll/HRZpolllist',{comID,maintainerid})
//换热站巡检提交
export const routingInspection = (data:object) =>request.post('/poll/InsertInspection',{...data})
//巡检历史
export const InspectionHistory = (comID:number,maintainerid:number) =>request.post('/poll/XJHistory',{comID,maintainerid})